package map.beans.owf;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({ "action", "dataTypes" })
public class Send {

	@JsonProperty("action")
	private String action;
	@JsonProperty("dataTypes")
	private List<String> dataTypes = new ArrayList<String>();
	private Map<String, Object> additionalProperties = new HashMap<String, Object>();

	@JsonProperty("action")
	public String getAction() {
		return action;
	}

	@JsonProperty("action")
	public void setAction(String action) {
		this.action = action;
	}

	public Send withAction(String action) {
		this.action = action;
		return this;
	}

	@JsonProperty("dataTypes")
	public List<String> getDataTypes() {
		return dataTypes;
	}

	@JsonProperty("dataTypes")
	public void setDataTypes(List<String> dataTypes) {
		this.dataTypes = dataTypes;
	}

	public Send withDataTypes(List<String> dataTypes) {
		this.dataTypes = dataTypes;
		return this;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

	@JsonAnyGetter
	public Map<String, Object> getAdditionalProperties() {
		return this.additionalProperties;
	}

	@JsonAnySetter
	public void setAdditionalProperties(String name, Object value) {
		this.additionalProperties.put(name, value);
	}

}